package cloud.xlh.digital_power_order.config;

import cloud.xlh.digital_power_order.domian.order.OrderSaveDomain;
import cloud.xlh.digital_power_order.domian.order.OrderUpdateDomain;
import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * Created with IntelliJ IDEA.
 *
 * @ project name : xlh_osms
 * @ Author: XuLeHuang
 * @ Date: 2023/8/12 19:52
 * @ Description:
 */
@FeignClient(value = "digital-power-pay" , url = "http://localhost:8087/")
@Component
public interface DigitalPowerPayRemoteCall {
    @PostMapping("/order/genOrder")
    String genOrder(OrderSaveDomain orderSaveDomain);
    @PostMapping("/order/selectOrder")
    String selectOrder(String orderNo);
    @PostMapping("/order/payOrder")
    String payOrder(JSONObject jsonObject);
    @PostMapping("/order/refundOrder")
    String refundOrder(OrderUpdateDomain orderUpdateDomain);
}
